#include "main.h"
#include "Engine.h"

#define fTIME_STEP  0.01f
#define iWIDTH      1024
#define iHEIGHT     768
#define iBITS       32
#define sTITLE      "Ranbos"

using namespace std;
using namespace jfw;

Engine* pEngine = new Engine();

int main()
{
    /*
    if(pEngine->LoadSettings("config.conf", "="))
        pEngine->Open();
    else
    */
    if(pEngine->Open(iWIDTH, iHEIGHT, iBITS, sTITLE, fTIME_STEP))
    {
        #ifdef DEBUG
            cout << "Opened" <<endl;
        #endif

        pEngine->Run();
        pEngine->Close();
    }
    #ifdef DEBUG
        system("PAUSE");
    #endif

    return EXIT_SUCCESS;
}
